﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.BomChange.Dto
{
    /// <summary>
    /// 添加子级类表格数据显示 （组件级）
    /// </summary>
   public class BomChangeAddChildDto: PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 物料代码
        /// </summary>
        public string MaterialNo { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
